package com.gitee.ricesugar.service;

import com.gitee.ricesugar.controller.request.BaseRequest;
import com.gitee.ricesugar.entity.User;
import com.github.pagehelper.PageInfo;


public interface IUserService {

    void add(User obj);

    void addList(User[] obj);

    PageInfo<User> page(BaseRequest baseRequest);

    User getByUid(String id);

    /**
     * 检测用户名是否存在，存在则throw ServiceException异常
     * */
    void checkUsernameExist(String username);

    void update(User obj);

    void deleteByUid(String id);
}
